package easy

func DistributeCandies1(candies int, num_people int) []int {
	ans := make([]int, num_people)
	i := 0
	for candies != 0 {
		ans[i%num_people] += min(candies, i+1)
		candies -= min(candies, i+1)
		i++
	}
	return ans
}
